import org.hibernate.Session;

import wal.naf.util.HibernateUtil;


public class Connecter 
{
	
	public static void main(String[]args)
	{
		Session session=null;
		
		try
		{
			session=HibernateUtil.getSessionFactory().openSession();
			System.out.println("connection reussite");
		}finally
		{
			session.close();
			System.out.println("fermeture de session");
		}
	}

}
